<%--
    Copyright 2010 mdx-shopping.

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

         http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
    under the License.

    Document   : index
    Created on : 2010/09/18, 19:31:42
    Author     : mdx-shopping
--%>

<%@page contentType="text/html" pageEncoding="UTF-8" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>

    <title>Shopping Index Page</title>
</head>

<body>

<s:iterator value="%{ indexProducts.entrySet().iterator()}" var="item" status="sts">
    <div class="span-20 last">
        <p class="alt" style="background:#dcdcdc ;"><s:property value="%{ #item.key}"/></p>
        <s:iterator value="%{ #item.value }">
            <div class="span-4 last">
                <s:a namespace="/front" action="detail" cssClass="alt">
                    <s:param name="productId" value="id"/>
                    <img src='<%=request.getContextPath()%>/front/productimage.action?path=/<s:property value="id"/>'
                        alt="item" width="100px" height="100px"/>
                </s:a> <br>
                <s:a namespace="/front" action="detail" cssClass="alt">
                    <s:param name="productId" value="id"/>
                    <s:property value="name"/>
                </s:a> <br>
                <span class="alt"> <s:property value="description"/> </span>

            </div>
        </s:iterator>
    </div>
    <hr/>
</s:iterator>

</body>
</html>
